local BFRECOUNT_TOGGLE_TEXT 
local BFRECOUNT_TITLE="Recount"
if (GetLocale() == "zhTW") then
	BFRECOUNT_TOGGLE_TEXT="點擊切換打開/關閉Recount"
elseif(GetLocale() == "zhCN") then
	BFRECOUNT_TOGGLE_TEXT="点击切换打开/关闭Recount"
else
	BFRECOUNT_TOGGLE_TEXT="Click to toggle Recount"
end
local LDB = LibStub("LibDataBroker-1.1", true)
local LDBIcon = LDB and LibStub("LibDBIcon-1.0", true)
if LDB and BigFoot_IsAddOnLoaded("Recount")then
	RecountLauncher = LDB:NewDataObject("Recount", {
		type = "launcher",
		icon = "Interface\\Icons\\inv_misc_book_12",
		OnClick = function(clickedframe)
			if Recount.MainWindow:IsShown() then 
				Recount.MainWindow:Hide() 
			else 
				Recount.MainWindow:SetClampedToScreen(true);
				Recount.MainWindow:Show();
				Recount:RefreshMainWindow() 
			end
		end,
		OnTooltipShow = function(tt)
			tt:AddLine(BFRECOUNT_TITLE)
			tt:AddLine(BFRECOUNT_TOGGLE_TEXT)
		end,
	})
	if LDBIcon then
		LDBIcon:Register("Recount", RecountLauncher, {
			hide = false,
			minimapPos = 220,
			radius = 80,
		})
	end
end